package xuesheng

import "fmt"

type person struct {
	name     string
	username string
	age      int
	pswd     string
}

type student struct {
	person
}

func Login() bool {
	var dgc person
	dgc.name = "杜国燦"
	dgc.username = "123456"
	dgc.age = 20
	dgc.pswd = "111"

	fmt.Println("请输入用户名")
	var name string
	fmt.Scanln(&name)
	fmt.Println("请输入密码")
	var pswd string
	fmt.Scanln(&pswd)
	if name == dgc.username && pswd == dgc.pswd {
		fmt.Println("欢迎你，", dgc.name)
	}
	return false
}
